<?php
namespace app\webadmin\validate;

use think\Validate;

class WendingxingCheck extends Validate
{
    protected $rule = [
        'times' => 'require',
        'datas' => 'require',
        'id' => 'require',
    ];

    protected $message = [
        'times.require' => '时间不能为空',
        'datas.unique' => '量值不能为空',
        'id.require' => '缺少更新条件',
    ];

    protected $scene = [
        'add' => ['times','datas'],
        'edit' => ['id','times','datas'],
    ];
}